package com.andreas.service;

import com.andreas.pojo.Evaluation;
import com.andreas.pojo.Member;
import com.andreas.pojo.MemberReadState;

import javax.print.attribute.standard.MediaName;

/**
 * @Author andreaszhou
 * @ClassName MemberService
 * @Description TODO
 * @date 2021/1/21 11:07
 * @Version 1.0
 */
public interface MemberService {
    /*
    * 注册
    * */
    Member addMember(String username,String password,String nickname,String verifyCode);
    /*
    * 登录
    * */
    Member checkLogin(String username,String password,String verifyCode);
    /*
    * 查找用户阅读状态
    * */
    MemberReadState selectMemberReadState(int memberId,int bookId);
    /*
    * 更新用户阅读状态
    * */
    MemberReadState updateMemberReadState(int memberId,int bookId,int readState);
    /*
    * 添加评论
    * */
    Evaluation addEvaluation(int memberId,int bookId,int score,String content);
    /*
    * 点赞
    * */
    Evaluation addEnjoy(int evaluationId);
}
